export default {
  state: {
    checkList: [],
    cartCount: 0
  },
  getters: {
    getCartCount: state => state.cartCount,
    getCheckList: state => state.checkList
  },
  mutations: {
    setCartCount: (state, cartCount) => { state.cartCount = cartCount },
    setCheckList: (state, checkList) => { state.checkList = checkList }
  },
  actions: {
    setCartCount: ({ commit }, data) => { commit('setCartCount', data) },
    setCheckList: ({ commit }, data) => { commit('setCheckList', data) }
  }
}
